-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: enable native tool calls for Requesty provider (ROO-235) #10211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Review complete. No issues found. This PR properly fixes the Requesty provider tool selector issue by:
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
- Add supportsNativeTools and defaultToolProtocol to Requesty model fetcher - Merge native tool defaults in RequestyHandler.getModel() for cached models - Apply same defaults merge in useSelectedModel for UI consistency - Also applied to Unbound provider for consistency The issue was that cached model data lacked the supportsNativeTools field, causing resolveToolProtocol() to return XML instead of native protocol.
- Add NATIVE_TOOL_DEFAULTS constant to @roo-code/types/tool.ts - Update RouterProvider.getModel() to merge defaults for all router providers (LiteLLM, Unbound) - Update RequestyHandler to use shared constant - Update useSelectedModel to use shared constant for requesty, unbound, litellm
194bdac to
660365e
Compare
cte
approved these changes
Dec 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
lgtm
This PR has been approved by a maintainer
PR - Needs Review
size:M
This PR changes 30-99 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the Requesty provider missing tool selector issue (ROO-235).
Root Cause
supportsNativeToolsanddefaultToolProtocolin the model infoSolution
Backend Fix - Fetcher - Added
supportsNativeTools: trueanddefaultToolProtocol: "native"to the Requesty model fetcher so new fetches include these fieldsBackend Fix - Provider - In
RequestyHandler.getModel(), merge native tool defaults before the cached model info so that cached models without these fields get the defaults appliedFrontend Fix - In
useSelectedModel.ts, applied the same pattern aslitellm: merge native tool defaults for UI display consistencyApplied the same fix to the
unboundprovider for consistencyChanges
src/api/providers/fetchers/requesty.ts- AddedsupportsNativeToolsanddefaultToolProtocolfieldssrc/api/providers/requesty.ts- Merged native tool defaults ingetModel()for cached modelswebview-ui/src/components/ui/hooks/useSelectedModel.ts- Merged native tool defaults for requesty and unbound providersTesting
Fixes ROO-235
Important
Fixes Requesty provider tool selector issue by ensuring native tool support is set and cached models are updated, with similar fixes for Unbound provider.
requesty.ts, addedsupportsNativeTools: trueanddefaultToolProtocol: "native"to model info.RequestyHandler.getModel(), mergedNATIVE_TOOL_DEFAULTSwith cached model info.router-provider.ts, applied the same merge for cached models.useSelectedModel.ts, mergedNATIVE_TOOL_DEFAULTSfor Requesty and Unbound providers.This description was created by
for 660365e. You can customize this summary. It will automatically update as commits are pushed.